<?php
	/**
	 *	地理位置（其他信息）相关操作工具
	 **/
namespace common\services\tool;

use Yii;

class GnhPosition {

	/**
	 *	根据要求请求的数字返回相对应的省份（固定不变）
	 *  @param 	$number  请求的地域编号（编号规则根据身份证匹配原则）
	 *  @return $str  	 返回相对应的省份
	 **/
	public static function provinceNum($number = null)
	{
		switch ($number) {
		   case "11": return "北京市";
		   case "12": return "天津市";
		   case "13": return "河北省";
		   case "14": return "山西省";
		   case "15": return "内蒙古自治区";
		   case "21": return "辽宁省";
		   case "22": return "吉林省";
		   case "23": return "黑龙江省";
		   case "31": return "上海市";
		   case "32": return "江苏省";
		   case "33": return "浙江省";
		   case "34": return "安徽省";
		   case "35": return "福建省";
		   case "36": return "江西省";
		   case "37": return "山东省";
		   case "41": return "河南省";
		   case "42": return "湖北省";
		   case "43": return "湖南省";
		   case "44": return "广东省";
		   case "45": return "广西壮族自治区";
		   case "46": return "海南省";
		   case "50": return "重庆市";
		   case "51": return "四川省";
		   case "52": return "贵州省";
		   case "53": return "云南省";
		   case "54": return "西藏自治区";
		   case "61": return "陕西省";
		   case "62": return "甘肃省";
		   case "63": return "青海省";
		   case "64": return "宁夏回族自治区";
		   case "65": return "新疆维吾尔自治区";
		   case "71": return "台湾省";
		   case "82": return "澳门特别行政区";
		   case "81": return "香港特别行政区";
		   default: return "其他";
		}
	}

	/**
	 *	根据要求请求的数字返回相对应的打款银行（已有固定不变，新增编号继续添加）
	 *  @param 	$number  请求的银行编号
	 *  @return $str  	 返回相对应的银行
	 **/
	public static function bankInfoNum($number = null)
	{
		switch ($number) {
		   case "1": return "工商银行";
		   case "2": return "农业银行";
		   case "3": return "光大银行";
		   case "4": return "邮政储蓄银行";
		   case "5": return "兴业银行";
		   case "6": return "深圳发展银行";
		   case "7": return "建设银行";
		   case "8": return "招商银行";
		   case "9": return "中国银行";
		   case "10": return "浦发银行";
		   case "11": return "平安银行";
		   case "12": return "华夏银行";
		   case "13": return "中信银行";
		   case "14": return "交通银行";
		   case "15": return "民生银行";
		   case "16": return "广发银行";
		   case "17": return "北京银行";
		   case "18": return "上海银行";
		   case "19": return "上海农商银行";
		   case "20": return "成都银行";
		   case "21": return "渤海银行";
		   case "22": return "南京银行";
		   case "23": return "宁波银行";
		   case "24": return "东亚银行";
		   case "25": return "北京农商银行";
		   case "26": return "杭州银行";
		   case "27": return "浙商银行";
		   case "28": return "江苏银行";
		   case "29": return "江西银行";
		   default: return "其他";
		}
	}

	/**
	 *	根据要求请求的数字返回相对应的扣款银行（已有固定不变，新增编号继续添加）
	 *  @param 	$number  请求的银行编号
	 *  @return $str  	 返回相对应的银行
	 **/
	public static function DebitBankNum($number = null)
	{
		switch ($number) {
		   case "1": return "工商银行";
		   case "2": return "农业银行";
		   case "3": return "光大银行";
		   case "4": return "邮政储蓄银行";
		   case "5": return "兴业银行";
		   case "6": return "深圳发展银行";
		   case "7": return "建设银行";
		   case "8": return "招商银行";
		   case "9": return "中国银行";
		   case "10": return "浦发银行";
		   case "11": return "平安银行";
		   case "12": return "华夏银行";
		   case "13": return "中信银行";
		   case "14": return "交通银行";
		   case "15": return "民生银行";
		   case "16": return "广发银行";
		   case "17": return "北京银行";
		   case "18": return "上海银行";
		   case "19": return "上海农商银行";
		   case "20": return "成都银行";
		   case "21": return "渤海银行";
		   case "22": return "南京银行";
		   case "23": return "宁波银行";
		   case "24": return "东亚银行";
		   case "25": return "北京农商银行";
		   case "26": return "杭州银行";
		   case "27": return "浙商银行";
		   case "28": return "江苏银行";
		   case "29": return "江西银行";
		   default: return "其他";
		}
	}

}